//
//  HORecordActiveView.h
//  Huahai
//
//  Created by Fox Guo on 14-10-20.
//
//

#import <UIKit/UIKit.h>
#import "HOBaseView.h"
#import "AudioRecorder.h"
#import "HORecordView.h"

@protocol HORecordActiveViewDelegate;

@interface HORecordActiveView : HOBaseView<AudioRecordDelegate, HORecordViewDelegate>
{
    BOOL            isNeedSendAudio;
    UIImageView     *bgRecordImg;
    NSTimer         *preTimer;
    
    AudioRecorder   *audioRecorder;
    UIView          *selfSuperView;
    
//    UIView          *recordingPanelView;
    UIView          *pauseRecordHintTxtBg;
    UIView          *volumnView;
    UIImageView          *recordPauseImgView;
    UIView          *auditionView;
    UILabel         *recordHintTxt;
    UIImageView     *interPhoneImgView;
    UIImageView     *errorRecordImgView;
    UIImageView     *volumnImgView;
    UIImageView *recordPanelImgViewBg;
    
}
@property(nonatomic, assign)id<HORecordActiveViewDelegate> delegate;
@property(nonatomic, retain)UILabel *textLbl;
//-(id)initWithFrame:(CGRect)frame withSuper:(UIView *)view;

#pragma mark -- record btn event.
- (void)startRecordAudio:(id)sender;
- (void)resumeAudio:(id)sender;
- (void)pauseRecordAudio:(id)sender;
- (void)stopRecordAudioDontSend:(id)sender;
- (void)stopRecordAudio:(id)sender;
@end
@protocol HORecordActiveViewDelegate <NSObject>
- (void) popupHintView:(NSString *)content;
- (void) hideHintView;
-(void)submitVoiceWithFileName:(NSString *)fileName withTotalTime:(double)totalTime;
- (void)recordUIDidHide;
@end
